<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>游乐园信息管理系统</title>
    <link rel="stylesheet" href="css/style.css">
    <link rel="stylesheet" href="css/components.css">
</head>

<body>
    <header class="header">
        <div class="header-container">
            <button class="mobile-menu-btn">☰</button>
            <div class="location">
                <span class="location-icon">📍</span>
                <span class="location-text">Beijing, China</span>
            </div>
            <nav class="main-nav">
                <a href="rest-area.html" class="nav-item">休息区预约</a>
                <a href="project-recommend.html" class="nav-item">项目实时推荐</a>
                <a href="shuttle-call.html" class="nav-item">摆渡车呼叫</a>
                <a href="equipment-book.html" class="nav-item">道具预约</a>
                <a href="order.html" class="nav-item active" aria-current="page" style="background: var(--primary-dark); border-bottom-color: #ffffff; color: #ffffff; box-shadow: inset 0 -2px 0 rgba(255,255,255,0.4);">订餐服务</a>
                <a href="help.html" class="nav-item">帮助</a>
                <a href="language.html" class="nav-item">语言</a>
            </nav>
            <div class="user-actions">
                <a href="login.html" class="login-btn">登录使用更多功能</a>
                <span class="user-icon disabled" onclick="alert('个人中心功能暂不可用')">👤</span>
            </div>
        </div>
    </header>

    <aside class="sidebar">
        <div class="sidebar-header">
            <h3>项目详情</h3>
            <button class="collapse-btn" onclick="toggleSidebar()">◀</button>
        </div>
        <ul class="project-list">
            <li><a href="roller-coaster.html">
                    <span class="project-icon">💦</span>
                    <span class="project-text">激流勇进</span>
                </a></li>
            <li><a href="vr-cinema.html">
                    <span class="project-icon">🥽</span>
                    <span class="project-text">VR影院</span>
                </a></li>
            <li><a href="personal-center.html">
                    <span class="project-icon">👤</span>
                    <span class="project-text">个人中心</span>
                </a></li>
        </ul>

        <div class="latest-notice">
            <h4>最新通知</h4>
            <div class="notice-content">
                <p>• VR影院维护完成，现已开放</p>
                <p>• 今日游客量较大，建议错峰游玩</p>
                <p>• 水上项目需预约救生衣</p>
                <p>• 夜间灯光秀今晚8点开始</p>
            </div>
        </div>
    </aside>

    <main class="main-content">
        <!-- 我的订单 -->
        <section class="section" id="myOrdersSection">
            <h4>🧾 我的订单 <a href="order-history.html" class="view-all-link">查看全部 →</a></h4>
            <div class="orders-list" id="ordersList">
                <div class="order-item" data-skeleton>
                    <div class="order-info">
                        <h5>加载中…</h5>
                        <p>正在获取最近订单</p>
                    </div>
                    <span class="status-badge">···</span>
                </div>
            </div>
        </section>

        <!-- 订餐服务 -->
        <section class="section" id="foodOrderSection">
            <h4>🍱 订餐服务</h4>

            <!-- 川菜馆 -->
            <h5 class="menu-category">🌶️ 川菜馆</h5>
            <div class="menu-grid" id="menuGrid-sichuan">
                <div class="menu-card" data-price="38" data-restaurant="川菜馆">
                    <img class="menu-img" src="images/backgrounds/" alt="宫保鸡丁" onerror="this.style.display='none'">
                    <div class="menu-info">
                        <div class="menu-name">宫保鸡丁</div>
                        <div class="menu-description">经典川菜,鸡肉鲜嫩,花生酥脆</div>
                        <div class="menu-meta">
                            <span class="price">¥38</span>
                            <div class="qty-controls" data-item>
                                <button class="qty-btn" data-action="decr">-</button>
                                <input class="qty-input" type="number" min="0" value="0" inputmode="numeric" />
                                <button class="qty-btn" data-action="incr">+</button>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="menu-card" data-price="28" data-restaurant="川菜馆">
                    <img class="menu-img" src="images/backgrounds/" alt="麻婆豆腐" onerror="this.style.display='none'">
                    <div class="menu-info">
                        <div class="menu-name">麻婆豆腐</div>
                        <div class="menu-description">麻辣鲜香,豆腐嫩滑</div>
                        <div class="menu-meta">
                            <span class="price">¥28</span>
                            <div class="qty-controls" data-item>
                                <button class="qty-btn" data-action="decr">-</button>
                                <input class="qty-input" type="number" min="0" value="0" inputmode="numeric" />
                                <button class="qty-btn" data-action="incr">+</button>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="menu-card" data-price="68" data-restaurant="川菜馆">
                    <img class="menu-img" src="images/backgrounds/" alt="水煮鱼" onerror="this.style.display='none'">
                    <div class="menu-info">
                        <div class="menu-name">水煮鱼</div>
                        <div class="menu-description">鱼肉滑嫩,麻辣爽口</div>
                        <div class="menu-meta">
                            <span class="price">¥68</span>
                            <div class="qty-controls" data-item>
                                <button class="qty-btn" data-action="decr">-</button>
                                <input class="qty-input" type="number" min="0" value="0" inputmode="numeric" />
                                <button class="qty-btn" data-action="incr">+</button>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="menu-card" data-price="42" data-restaurant="川菜馆">
                    <img class="menu-img" src="images/backgrounds/" alt="回锅肉" onerror="this.style.display='none'">
                    <div class="menu-info">
                        <div class="menu-name">回锅肉</div>
                        <div class="menu-description">肥而不腻,香味浓郁</div>
                        <div class="menu-meta">
                            <span class="price">¥42</span>
                            <div class="qty-controls" data-item>
                                <button class="qty-btn" data-action="decr">-</button>
                                <input class="qty-input" type="number" min="0" value="0" inputmode="numeric" />
                                <button class="qty-btn" data-action="incr">+</button>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="menu-card" data-price="35" data-restaurant="川菜馆">
                    <img class="menu-img" src="images/backgrounds/" alt="夫妻肺片" onerror="this.style.display='none'">
                    <div class="menu-info">
                        <div class="menu-name">夫妻肺片</div>
                        <div class="menu-description">麻辣鲜香,口感丰富</div>
                        <div class="menu-meta">
                            <span class="price">¥35</span>
                            <div class="qty-controls" data-item>
                                <button class="qty-btn" data-action="decr">-</button>
                                <input class="qty-input" type="number" min="0" value="0" inputmode="numeric" />
                                <button class="qty-btn" data-action="incr">+</button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 川菜馆统计和提交 -->
            <div class="order-summary" id="sichuanOrderSummary">
                <div class="summary-left">
                    <span>已选数量：</span>
                    <strong id="sichuanSummaryCount">0</strong>
                </div>
                <div class="summary-right">
                    <span>合计：</span>
                    <strong id="sichuanSummaryTotal">¥0</strong>
                </div>
            </div>

            <div class="order-actions">
                <button class="btn btn-primary" id="sichuanSubmitOrderBtn">提交川菜馆订单</button>
            </div>

            <!-- 粤菜馆 -->
            <h5 class="menu-category">🦆 粤菜馆</h5>
            <div class="menu-grid" id="menuGrid-canton">
                <div class="menu-card" data-price="48" data-restaurant="粤菜馆">
                    <img class="menu-img" src="images/backgrounds/" alt="白切鸡" onerror="this.style.display='none'">
                    <div class="menu-info">
                        <div class="menu-name">白切鸡</div>
                        <div class="menu-description">鸡肉鲜嫩,保持原汁原味</div>
                        <div class="menu-meta">
                            <span class="price">¥48</span>
                            <div class="qty-controls" data-item>
                                <button class="qty-btn" data-action="decr">-</button>
                                <input class="qty-input" type="number" min="0" value="0" inputmode="numeric" />
                                <button class="qty-btn" data-action="incr">+</button>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="menu-card" data-price="88" data-restaurant="粤菜馆">
                    <img class="menu-img" src="images/backgrounds/" alt="烧鹅" onerror="this.style.display='none'">
                    <div class="menu-info">
                        <div class="menu-name">烧鹅</div>
                        <div class="menu-description">皮脆肉嫩,香气四溢</div>
                        <div class="menu-meta">
                            <span class="price">¥88</span>
                            <div class="qty-controls" data-item>
                                <button class="qty-btn" data-action="decr">-</button>
                                <input class="qty-input" type="number" min="0" value="0" inputmode="numeric" />
                                <button class="qty-btn" data-action="incr">+</button>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="menu-card" data-price="58" data-restaurant="粤菜馆">
                    <img class="menu-img" src="images/backgrounds/" alt="叉烧" onerror="this.style.display='none'">
                    <div class="menu-info">
                        <div class="menu-name">叉烧</div>
                        <div class="menu-description">色泽红亮,甜而不腻</div>
                        <div class="menu-meta">
                            <span class="price">¥58</span>
                            <div class="qty-controls" data-item>
                                <button class="qty-btn" data-action="decr">-</button>
                                <input class="qty-input" type="number" min="0" value="0" inputmode="numeric" />
                                <button class="qty-btn" data-action="incr">+</button>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="menu-card" data-price="32" data-restaurant="粤菜馆">
                    <img class="menu-img" src="images/backgrounds/" alt="虾饺" onerror="this.style.display='none'">
                    <div class="menu-info">
                        <div class="menu-name">虾饺</div>
                        <div class="menu-description">皮薄馅鲜,晶莹剔透</div>
                        <div class="menu-meta">
                            <span class="price">¥32</span>
                            <div class="qty-controls" data-item>
                                <button class="qty-btn" data-action="decr">-</button>
                                <input class="qty-input" type="number" min="0" value="0" inputmode="numeric" />
                                <button class="qty-btn" data-action="incr">+</button>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="menu-card" data-price="25" data-restaurant="粤菜馆">
                    <img class="menu-img" src="images/backgrounds/" alt="肠粉" onerror="this.style.display='none'">
                    <div class="menu-info">
                        <div class="menu-name">肠粉</div>
                        <div class="menu-description">滑嫩爽口,酱汁浓郁</div>
                        <div class="menu-meta">
                            <span class="price">¥25</span>
                            <div class="qty-controls" data-item>
                                <button class="qty-btn" data-action="decr">-</button>
                                <input class="qty-input" type="number" min="0" value="0" inputmode="numeric" />
                                <button class="qty-btn" data-action="incr">+</button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 粤菜馆统计和提交 -->
            <div class="order-summary" id="cantonOrderSummary">
                <div class="summary-left">
                    <span>已选数量：</span>
                    <strong id="cantonSummaryCount">0</strong>
                </div>
                <div class="summary-right">
                    <span>合计：</span>
                    <strong id="cantonSummaryTotal">¥0</strong>
                </div>
            </div>

            <div class="order-actions">
                <button class="btn btn-primary" id="cantonSubmitOrderBtn">提交粤菜馆订单</button>
            </div>

            <!-- 日料店 -->
            <h5 class="menu-category">🍣 日料店</h5>
            <div class="menu-grid" id="menuGrid-japanese">
                <div class="menu-card" data-price="78" data-restaurant="日料店">
                    <img class="menu-img" src="images/backgrounds/" alt="三文鱼刺身" onerror="this.style.display='none'">
                    <div class="menu-info">
                        <div class="menu-name">三文鱼刺身</div>
                        <div class="menu-description">新鲜三文鱼,入口即化</div>
                        <div class="menu-meta">
                            <span class="price">¥78</span>
                            <div class="qty-controls" data-item>
                                <button class="qty-btn" data-action="decr">-</button>
                                <input class="qty-input" type="number" min="0" value="0" inputmode="numeric" />
                                <button class="qty-btn" data-action="incr">+</button>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="menu-card" data-price="68" data-restaurant="日料店">
                    <img class="menu-img" src="images/backgrounds/" alt="天妇罗" onerror="this.style.display='none'">
                    <div class="menu-info">
                        <div class="menu-name">天妇罗</div>
                        <div class="menu-description">外酥里嫩,清爽不膩</div>
                        <div class="menu-meta">
                            <span class="price">¥68</span>
                            <div class="qty-controls" data-item>
                                <button class="qty-btn" data-action="decr">-</button>
                                <input class="qty-input" type="number" min="0" value="0" inputmode="numeric" />
                                <button class="qty-btn" data-action="incr">+</button>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="menu-card" data-price="88" data-restaurant="日料店">
                    <img class="menu-img" src="images/backgrounds/" alt="寿司拼盘" onerror="this.style.display='none'">
                    <div class="menu-info">
                        <div class="menu-name">寿司拼盘</div>
                        <div class="menu-description">多种寿司组合,丰富美味</div>
                        <div class="menu-meta">
                            <span class="price">¥88</span>
                            <div class="qty-controls" data-item>
                                <button class="qty-btn" data-action="decr">-</button>
                                <input class="qty-input" type="number" min="0" value="0" inputmode="numeric" />
                                <button class="qty-btn" data-action="incr">+</button>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="menu-card" data-price="18" data-restaurant="日料店">
                    <img class="menu-img" src="images/backgrounds/" alt="味噌汤" onerror="this.style.display='none'">
                    <div class="menu-info">
                        <div class="menu-name">味噌汤</div>
                        <div class="menu-description">鲜美可口,暖胃养生</div>
                        <div class="menu-meta">
                            <span class="price">¥18</span>
                            <div class="qty-controls" data-item>
                                <button class="qty-btn" data-action="decr">-</button>
                                <input class="qty-input" type="number" min="0" value="0" inputmode="numeric" />
                                <button class="qty-btn" data-action="incr">+</button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 日料店统计和提交 -->
            <div class="order-summary" id="japaneseOrderSummary">
                <div class="summary-left">
                    <span>已选数量：</span>
                    <strong id="japaneseSummaryCount">0</strong>
                </div>
                <div class="summary-right">
                    <span>合计：</span>
                    <strong id="japaneseSummaryTotal">¥0</strong>
                </div>
            </div>

            <div class="order-actions">
                <button class="btn btn-primary" id="japaneseSubmitOrderBtn">提交日料店订单</button>
            </div>
        </section>

    </main>

    <script src="js/api-service.js"></script>
    <script src="js/main.js"></script>
    <script src="js/visitor-statistics.js"></script>
    <script src="js/food-order.js"></script>
</body>

</html>